import { get,post } from '../http';

/**
 * 车间退库
 * 
 */

export function workShopStocks (){
    return {
        getStocksList:(paramsData:any) =>{
           return post({
            url:`/aps/WorkshopReturn/getPage`,
            data:paramsData
         })
        }, 
        addStocks:(params:any) => {
            return post( {
                url:'/aps/WorkshopReturn/insertList', 
                data:params
            })
        },
        editStocks:(params:any) => {
            return post( {
                url:'/aps/WorkshopReturn/updateList',
                data:params
            })
        },
        delStocks:(params:any) => { 
            return post({
                url:`aps/WorkshopReturn/delete`,
                data:params
            })
        },
        getStocksItem: (params:any) => {
            return post({
                url:'/aps/WorkshopReturnDetail/getList',
                data:params
            })
        },
        auditStocks:(params:any) => { 
            return post({
                url:`/aps/WorkshopReturn/setAudit`,
                data:params
            })
        },
    }
}
